home *** CD-ROM | disk | FTP | other *** search
/ PC Media 3 / PC MEDIA CD03.iso / share / udos / dos5tch / setup.doc < prev    next >
Encoding:
Text File  |  1991-11-21  |  2.4 KB  |  64 lines

  1. SETUP
  2.  
  3. Jeff Prosise
  4. Command PC Magazine Vol 5, No 12
  5. Copyright 1986 Ziff-Davis Publishing Company
  6.  
  7. Purpose  
  8. Permits menu-oriented selection and immediate transmission of printer 
  9. control codes from within a running application program.
  10.  
  11.  
  12. SYNTAX        SETUP [[d:] [path] filename] [/c codes] [/Pn]
  13.  
  14. filename  Name of a printer menu file to load
  15. /C codes  Transmit control codes defined in codes
  16. /Pn       Number of the LPT port to direct output to (1,2,or 3; 
  17. default=1)
  18.  
  19.  
  20. DESCRIPTION
  21.  
  22. SETUP can be used in either of two ways. If it's run with a /C switch, 
  23. it immediately outputs a code string to the printer. The code string can 
  24. contain any mix of decimal, hexadecimal, and ASCII characters. ASCII 
  25. characters are enclosed in quotation marks, while hexadecimal codes are 
  26. preceded by the characters "Ox." For example, the command
  27.  
  28. SETUP /C 13,10,"PC Magazine",0x0D,0x0A
  29.  
  30. sends "PC Magazine" to LPT 1 sandwiched between two carriage 
  31. return/line-feed characters. If SETUP is run without the /C switch, it 
  32. makes itself memory resident. Pressing Ctrl and the right Shift key pops 
  33. up a window containing a menu of printer control options. You specify 
  34. what these options are by creating a text file called a printer menu 
  35. file (PMF) and passing SETUP the name of the file on the command line. 
  36. Once the window pops up, you can select control codes from the menus or 
  37. enter codes directly. PgUp and PgDn display other menu pages, and Up and 
  38. Down Arrow keys move the highlight. Enter transmit the highlighted 
  39. control code, as does the function key to the left of the menu option. 
  40. Press the / (slash) key to enter control codes directly. You can change 
  41. where the printer output goes by pressing the * key. The LPT port 
  42. currently selected is displayed in the lower-right corner of the window. 
  43. Esc closes the window. The source code for SETUP is available on 
  44. ZiffNet.
  45.  
  46. EXAMPLES
  47.  
  48. To reset to LaserJet printer, type
  49.  
  50. SETUP /C 27,"E"
  51.  
  52. To set an Epson or IBM dot-matrix printer attached to LPT3 to print 
  53. condensed type, type
  54.  
  55. SETUP /C 0x0F /P3
  56.  
  57. To install SETUP as a TSR and load the menu file LASERJET.PMF, type
  58.  
  59. SETUP LASERJET.PMF
  60.  
  61. ** Special Note:  This utility is also a mentioned in the Ziff-Davis Press
  62. book "PC Magazine's DOS 5 Techniques and Utilities" by Jeff Prosise. Both
  63. this DOCumentation file and in the book's utility reference stand as correct.
  64.